package Dem01;

public class Parent {
//    protected int age;
//    protected String name;
//
//    public Parent(int age,String name){
//        this.name = name;
//        this.age = age;
//    }
//    public Parent(){}
//
//    public void printInfo(){
//        System.out.println("Name：" + name);
//        System.out.println("Age：" + age);
//    }
    public static String name = "为父张崇杰";
    public static int age = 21;
    public double weight = 66.6;
    public static String key = "kfm-zcj";

    public static void print(){
        System.out.println("Parent.print()");
    }
    public void printInfo(){
        System.out.println("name =" + name + ",age =" + age
        + ",weight=" + weight +",key=" + key );
    }
}
